package gold.digger;

import gold.vo.ListNode;

/**
 * Created by fanzhenyu02 on 2020/6/27.
 * common problem solver template.
 */
public class LC237 {
    public long startExecuteTime = System.currentTimeMillis();


    public void deleteNode(ListNode node) {
        ListNode breakNext = node.next;
        node.val = node.next.val;
        node.next = node.next.next;
        breakNext.next = null;
    }


    public static void main(String[] args) {
        LC237 an = new LC237();

        an.deleteNode(new ListNode(4));

        System.out.println("\nanswer total execute time: " + (System.currentTimeMillis() - an.startExecuteTime) + " ms.");
    }
}
